
public class code071 {
    public static void main(String[] args) {
		int[] arr={34,2,45,46,87,-98,2,123};
		int min=arr[0];
		for (int i = 0; i < arr.length; i++) {
			if(min>arr[i]){
				min=arr[i];
			}
		}
		System.out.println(min);
	}
}
